package com.sigmazero13.MKDummy.utils;

import android.content.Context;
import android.content.SharedPreferences;

import com.sigmazero13.MKDummy.components.CrystalDisplayIconView;
import com.sigmazero13.MKDummy.components.CrystalDisplayTextView;
import com.sigmazero13.MKDummy.components.CrystalDisplayView;

public class CrystalDisplayViewFactory {

	public static CrystalDisplayView createCrystalDisplayView(SharedPreferences p, Context c) {
		boolean showIcons = p.getBoolean("show_icons", true);
		
		if (showIcons) {
			return new CrystalDisplayIconView(c);
		} else {
			return new CrystalDisplayTextView(c);
		}
	}

}
